package com.gxuwz.check.service.admin.impl;

import com.gxuwz.check.dao.admin.ICourseDao;
import com.gxuwz.check.model.entity.SysCourseEntity;
import com.gxuwz.check.model.vo.TeacherVO;
import com.gxuwz.check.service.admin.ICourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl  implements ICourseService {
    @Autowired
    private ICourseDao courseDao;

    @Override
    public List<SysCourseEntity> list(int page) {
        return courseDao.list(page);
    }

    @Override
    public void delete(Integer courseId) {
        courseDao.delete(courseId);
    }

    @Override
    public void edit() {

    }

    @Override
    public void save(int chooseType,String courseName,String teachIdArray) {
        courseDao.save(chooseType,courseName,teachIdArray);
    }

    @Override
    public List<TeacherVO> listTeacherByCollegeId(int collegeId) {
        return courseDao.listTeacherByCollegeId(collegeId);
    }
}
